<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
输出基础变量: {$username}<br>
输出点语法数组: {$arr.0}<br>
输出关联数组内容: {$arr2['a']}<br>
数组遍历: <br>
{foreach $arr2 as $item}
{if $item==2}
     数字是2<br>
{else}
     {$item}<br>
{/if}
{/foreach}
数组遍历键和值：<br>
{foreach $arr2 as $key=>$item}
{$key}====={$item}
{/foreach}

<h1>显示单选框</h1>
{html_radios name="abc" values=['1','2'] output=['男','女'] selected='2'}
</body>
</html>